package mud.unit;

import mud.Combatable;
import mud.events.Event;

/** Indicates that an unit has forfeited its turn */
public class PassEvent implements Event {

    /** the unit that has forfeited its turn */
    private final Combatable combatant;

    /**
     * Constructs a new PassEvent
     * @param combatant the unit that has forfeited its turn
     */
    public PassEvent(Combatable combatant) {
        this.combatant = combatant;
    }

    /**
     * @return the unit that has forfeited its turn
     */
    public Combatable getCombatant() {
        return combatant;
    }
}
